The difference between single and double quotation marks in PHP. 1. define a string in PHP. The definition of a string can be single quotation marks or double quotation marks. However, the same single or double quotation marks must be used to define
Reading a lot of code sometimes uses single quotes or double quotes to implement content containing strings. In fact, variables in double quotes can be parsed simply. single quotes are absolute strings.
1. define a string
In PHP, you can use
1. Define a string
In PHP, you can use single quotes or double quotes to define strings. However, the same single or double quotation marks must be used to define strings. For example, 'hello' and 'hello' are invalid strings.When defining a
The difference between single quotation marks and double quotes in PHP
In a programming language, both single and double quotes are important, as is the case in the PHP language. Compared to ASP, PHP quotation marks better use, in ASP, to put the
Wenku. baidu. comview3e6a238271fe910ef12df806 "what is the difference and usage between single quotes and double quotes ?" Now I will summarize the answer and write it into this short article. Fields in double quotation marks are interpreted by the
Next we will discuss the difference between double quotation marks in the PHP programming language. In programming languages, both single quotes and double quotes play an important role, as in PHP. PHP quotes are easier to use than ASP quotes. the
1. Defining Strings
In PHP, the definition of a string can use either single quotation marks or double quotes. However, you must use the same single or double quotation marks to define strings, such as: ' Hello ' and ' hello ' are illegal
Summary of Oracle and Linux Double quotation marks and single quotation marks in general, we usually use single quotation marks, but when the character set is inconsistent, double quotation marks and single quotation marks are quite different, when
Generally, we use single quotes.However, when character sets are inconsistent, double quotation marks and single quotation marks are quite different.In addition, when using ODBC bridge to import external data, the table name is enclosed by double
In a programming language, either
single quotation marksStill is
Double quotes, all have a very important role in
PHPLanguage is the same. Compared to ASP, PHP quotation marks better use, the following for you to introduce the difference between
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.